import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import "lib-flexible"
import "@/assets/vant/vant"
import "@/assets/css/css.css"

import "@/assets/axios/axios"
// import axios from 'axios'
// //配置默认的url请求路径，可以直接修改，子组件直接调用
// axios.defaults.baseURL = 'http://120.53.31.103:84/api/app/'
// //配置axios的全局设置
// Vue.prototype.$http = axios



Vue.filter('timer',(v)=>{
  // console.log(v);
  var t=new Date(v)
  var y=t.getFullYear()
  var m=(t.getMonth()+1).toString().padStart(2,0)
  var d=t.getDate().toString().padStart(2,0)
  var h=t.getHours().toString().padStart(2,0)
  var M=t.getMinutes().toString().padStart(2,0)
  var s=t.getSeconds().toString().padStart(2,0)

  return `${y}/${m}/${d} ${h}:${M}:${s}`
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
